import React from "react"

const Editor = (props) => {
    const { updateEntity } = props;

    return (
        <div className="ui form">
            <div className="field">
                <textarea
                    rows="5"
                    placeholder="写点啥捏"
                    onInput={(event) => { updateEntity(event) }}
                // react 是个非常接近原生js的框架
                />
            </div>
        </div>
    )
}

export default Editor;